import Vue from 'vue'
import Layout from './Layout.vue'
import store from './store'
import 'normalize.css/normalize.css'
import './style/index.scss'
import './style/simulator.css'
import './ant'
import './vant'
import './function'
import vcolorpicker from 'vcolorpicker'
import route from './router/index'
Vue.use(vcolorpicker);
Vue.config.productionTip = false;
new Vue({
    router: route,
    store,
  render: h => h(Layout),
  async mounted() {
      let data = await this.$post('api/user/info', {})
      store.commit('setLoginUser', data)
  }
}).$mount('#app');

